.class public final Lnbisdk/kz;
.super Lnbisdk/ia;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lnbisdk/kz$a;
    }
.end annotation


# instance fields
.field private bM:Ljava/util/Timer;

.field private bS:Lcom/nbi/location/LocationListener;

.field private bT:Lcom/nbi/location/LocationListener;

.field private dN:Z

.field private dm:Ljava/util/Timer;


# direct methods
.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2}, Lnbisdk/ia;-><init>(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/kz;->dN:Z

    iput-object v1, p0, Lnbisdk/kz;->bM:Ljava/util/Timer;

    iput-object v1, p0, Lnbisdk/kz;->dm:Ljava/util/Timer;

    new-instance v0, Lnbisdk/ar;

    invoke-direct {v0, p0}, Lnbisdk/ar;-><init>(Lnbisdk/kz;)V

    iput-object v0, p0, Lnbisdk/kz;->bS:Lcom/nbi/location/LocationListener;

    new-instance v0, Lnbisdk/as;

    invoke-direct {v0, p0}, Lnbisdk/as;-><init>(Lnbisdk/kz;)V

    iput-object v0, p0, Lnbisdk/kz;->bT:Lcom/nbi/location/LocationListener;

    invoke-virtual {p0}, Lnbisdk/kz;->jk()I

    move-result v0

    invoke-virtual {p0}, Lnbisdk/kz;->jo()I

    move-result v1

    if-le v0, v1, :cond_0

    invoke-virtual {p0}, Lnbisdk/kz;->jk()I

    move-result v0

    int-to-long v0, v0

    :goto_0
    iput-wide v0, p0, Lnbisdk/kz;->sv:J

    return-void

    :cond_0
    invoke-virtual {p0}, Lnbisdk/kz;->jo()I

    move-result v0

    int-to-long v0, v0

    goto :goto_0
.end method

.method static synthetic a(Lnbisdk/kz;)Z
    .locals 1

    iget-boolean v0, p0, Lnbisdk/kz;->dN:Z

    return v0
.end method

.method static synthetic a(Lnbisdk/kz;Z)Z
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lnbisdk/kz;->dN:Z

    return v0
.end method

.method private aU()Z
    .locals 3

    const/4 v2, 0x0

    :try_start_0
    iget-object v0, p0, Lnbisdk/kz;->ca:Lcom/nbi/common/NBIContext;

    iget-object v1, p0, Lnbisdk/kz;->bS:Lcom/nbi/location/LocationListener;

    invoke-static {v0, v1}, Lnbisdk/bd;->a(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)Lnbisdk/gn;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/kz;->sn:Lnbisdk/gn;

    iget-object v0, p0, Lnbisdk/kz;->ca:Lcom/nbi/common/NBIContext;

    iget-object v1, p0, Lnbisdk/kz;->bT:Lcom/nbi/location/LocationListener;

    invoke-static {v0, v1}, Lnbisdk/bd;->b(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)Lnbisdk/or;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/kz;->so:Lnbisdk/or;

    iget-object v0, p0, Lnbisdk/kz;->so:Lnbisdk/or;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kz;->sn:Lnbisdk/gn;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-nez v0, :cond_1

    :cond_0
    move v0, v2

    :goto_0
    return v0

    :catch_0
    move-exception v0

    move v0, v2

    goto :goto_0

    :cond_1
    const/4 v0, 0x1

    goto :goto_0
.end method

.method static synthetic b(Lnbisdk/kz;)V
    .locals 0

    invoke-direct {p0}, Lnbisdk/kz;->bO()V

    return-void
.end method

.method private bO()V
    .locals 1

    iget-object v0, p0, Lnbisdk/kz;->dm:Ljava/util/Timer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kz;->dm:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/kz;->dm:Ljava/util/Timer;

    :cond_0
    return-void
.end method


# virtual methods
.method public final aS()Z
    .locals 8

    const/4 v7, 0x0

    const/4 v6, 0x1

    invoke-virtual {p0}, Lnbisdk/kz;->jm()I

    move-result v0

    int-to-long v0, v0

    invoke-virtual {p0, v0, v1}, Lnbisdk/kz;->i(J)Z

    move-result v0

    if-ne v0, v6, :cond_1

    move v0, v6

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-direct {p0}, Lnbisdk/kz;->aU()Z

    move-result v0

    if-ne v0, v6, :cond_0

    invoke-virtual {p0}, Lnbisdk/kz;->jt()V

    iget-object v0, p0, Lnbisdk/kz;->ca:Lcom/nbi/common/NBIContext;

    invoke-static {v0}, Lnbisdk/bd;->c(Lcom/nbi/common/NBIContext;)Lnbisdk/og;

    move-result-object v0

    if-eqz v0, :cond_8

    invoke-interface {v0}, Lnbisdk/og;->getWifiState()I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_2

    invoke-interface {v0}, Lnbisdk/og;->cu()Z

    :cond_2
    iget-object v0, p0, Lnbisdk/kz;->so:Lnbisdk/or;

    invoke-interface {v0}, Lnbisdk/or;->bl()Z

    move-result v0

    :goto_1
    iput-boolean v6, p0, Lnbisdk/kz;->dN:Z

    iget-object v1, p0, Lnbisdk/kz;->ca:Lcom/nbi/common/NBIContext;

    invoke-static {v1}, Lnbisdk/bd;->d(Lcom/nbi/common/NBIContext;)Lnbisdk/cj;

    move-result-object v1

    if-eqz v1, :cond_7

    iget-object v2, p0, Lnbisdk/kz;->sn:Lnbisdk/gn;

    if-eqz v2, :cond_5

    invoke-interface {v1}, Lnbisdk/cj;->bi()Z

    move-result v2

    if-ne v2, v6, :cond_4

    iput-boolean v7, p0, Lnbisdk/kz;->dN:Z

    iget-object v1, p0, Lnbisdk/kz;->sn:Lnbisdk/gn;

    invoke-interface {v1}, Lnbisdk/gn;->bl()Z

    move-result v1

    invoke-direct {p0}, Lnbisdk/kz;->bO()V

    new-instance v2, Ljava/util/Timer;

    invoke-direct {v2}, Ljava/util/Timer;-><init>()V

    iput-object v2, p0, Lnbisdk/kz;->dm:Ljava/util/Timer;

    iget-object v2, p0, Lnbisdk/kz;->dm:Ljava/util/Timer;

    new-instance v3, Lnbisdk/kz$a;

    invoke-direct {v3, p0}, Lnbisdk/kz$a;-><init>(Lnbisdk/kz;)V

    invoke-virtual {p0}, Lnbisdk/kz;->jo()I

    move-result v4

    int-to-long v4, v4

    invoke-virtual {v2, v3, v4, v5}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    :goto_2
    if-nez v1, :cond_6

    if-nez v0, :cond_6

    iget-object v0, p0, Lnbisdk/kz;->el:Lcom/nbi/location/LocationListener;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnbisdk/kz;->el:Lcom/nbi/location/LocationListener;

    const/16 v1, 0x2346

    invoke-interface {v0, v1}, Lcom/nbi/location/LocationListener;->onLocationError(I)V

    :cond_3
    move v0, v7

    goto :goto_0

    :cond_4
    invoke-interface {v1}, Lnbisdk/cj;->bm()V

    move v1, v7

    goto :goto_2

    :cond_5
    move v1, v7

    goto :goto_2

    :cond_6
    move v0, v6

    goto :goto_0

    :cond_7
    move v1, v7

    goto :goto_2

    :cond_8
    move v0, v7

    goto :goto_1
.end method

.method public final cancel()Z
    .locals 1

    invoke-direct {p0}, Lnbisdk/kz;->bO()V

    invoke-super {p0}, Lnbisdk/ia;->cancel()Z

    move-result v0

    return v0
.end method
